/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;

using JDCloudSDK.Core.Annotation;

namespace JDCloudSDK.Mongodb.Model
{

    /// <summary>
    ///  dBInstanceSpec
    /// </summary>
    public class DBInstanceSpec
    {

        ///<summary>
        /// 实例名称，只支持数字、字母、英文下划线、中文，且不少于2字符不超过32字符。
        ///</summary>
        public string InstanceName{ get; set; }
        ///<summary>
        /// 数据库类型，MongoDB
        ///</summary>
        public string Engine{ get; set; }
        ///<summary>
        /// 数据库版本，3.2
        ///</summary>
        public string EngineVersion{ get; set; }
        ///<summary>
        /// 实例规格代码。mongo.s1.small：1核2G;mongo.s1.medium：2核4G;mongo.s1.large：4核8G;mongo.s1.xlarge：8核16G;mongo.s2.2xlarge：8核32G;mongo.s2.4xlarge：16核64G;
        ///Required:true
        ///</summary>
        [Required]
        public string InstanceClass{ get; set; }
        ///<summary>
        /// 存储空间，单位GB，取值10-1000,10的倍数。
        ///Required:true
        ///</summary>
        [Required]
        public int InstanceStorageGB{ get; set; }
        ///<summary>
        /// 是否选择多可用区部署
        ///Required:true
        ///</summary>
        [Required]
        public bool MultiAZ{ get; set; }
        ///<summary>
        /// 可用区ID，必填，依次为primary、secondary、hidden所在的可用区ID。multiAZ选择否，则三个节点需要写相同的可用区ID；multiAZ选择是，如当前地域的可用区数量为2，则primary与secondary的可用区ID需相同，且与hidden不同；如当前地域的可用区数量大于2，则3个可用区ID均需不同。
        ///Required:true
        ///</summary>
        [Required]
        public List<string> AzId{ get; set; }
        ///<summary>
        /// VPCID
        ///Required:true
        ///</summary>
        [Required]
        public string VpcId{ get; set; }
        ///<summary>
        /// 子网ID
        ///Required:true
        ///</summary>
        [Required]
        public string SubnetId{ get; set; }
        ///<summary>
        /// 密码，必须包含且只支持字母及数字，不少于8字符不超过16字符。
        ///</summary>
        public string Password{ get; set; }
        ///<summary>
        /// 按备份创建使用的具体备份ID
        ///</summary>
        public string BackupId{ get; set; }
        ///<summary>
        /// 基于一个实例的备份创建新实例，如填写则restoreTime也需要填写。
        ///</summary>
        public string OriginDBInstanceId{ get; set; }
        ///<summary>
        /// 用户指定备份保留周期内的任意时间点，如2011-06-11T16:00:00Z，非必填，与backupId互斥。
        ///</summary>
        public string RestoreTime{ get; set; }
        ///<summary>
        /// 存储类型。参考枚举参数定义，LOCAL_SSD -本地盘SSD、LOCAL_NVMe -本地盘NVMe，缺省值为：LOCAL_SSD
        ///</summary>
        public string InstanceStorageType{ get; set; }
        ///<summary>
        /// 实例数据加密（存储类型为云硬盘才支持数据加密）。 false：不加密；true：加密。缺省为false。
        ///</summary>
        public bool StorageEncrypted{ get; set; }
    }
}
